Fix error case in filesystem model
authorBenjamin Otte <otte@redhat.com>
Mon, 29 Mar 2010 14:26:14 +0000 (16:26 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 29 Mar 2010 14:29:20 +0000 (16:29 +0200)
commit9514e741cd153fc36d9e9d7982db5d7f6aad097e
tree3c90f7c343cb37a17a00133889a0659d1abe13e1
parentb84d4a308e1540efb63e657b645d1d45bcda5b68
Fix error case in filesystem model

We should not unref the model here, it might not even exist anymore.
Instead check if it exists and only use it if it does.
The unref was leftover from a previous fix in
ba9f53397ff0b86ad56166c7fc91b4d499f7aefc.

Spotted by Matthias Clasen in
https://bugzilla.gnome.org/show_bug.cgi?id=614099
gtk/gtkfilesystemmodel.c